#ifdef __cplusplus
extern "C" {
#endif


#ifndef PIDCTR_H
#define PIDCTR_H
#include "common.h"

typedef enum{
	CTR_COLD,
	CTR_HOT,
}Ctr_Type;

typedef struct{
    float Pp;
    float Pi;
    float Pd;
}PIDset;

extern int Api_Pidctr_Get_Conf(PIDset *t);
extern int Api_Pidctr_Set_Conf(PIDset t);
extern int Api_Pidctr_Init();
extern float Api_Pidctr_Ctr(float ADCur,float ADSet,Ctr_Type type);

#endif

#ifdef __cplusplus
}
#endif

